﻿Ext.define('I2R.view.search', {
    extend: 'Ext.FormPanel',
    alias: 'widget.i2rsearch',
    border: false,
    bodyCls: 'padd-up',
    initComponent: function () {

        var me = this;
        me.items = me.getFields();

        me.callParent(arguments);
    },

    getFields: function () {

        return [

            {
                xtype: 'fieldcontainer',
                width: 600,
                layout: 'hbox',
                cls: 'search-container',
                items: [
                    {
                        xtype: 'textfield', flex: 1, emptyText: 'Search..'
                    },
                    {
                        xtype: 'splitter'
                    },
                    {
                        xtype: 'button',
                        text: 'Search',
                        action: 'proposalsearch'
                    }
                ]
            },
            {
                id: 'search-result',
                xtype: 'panel',
                width: 640,
                hidden: true
            }

        ];

    }
});